package com.ktjy.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class MyScheduledTasks {
//    @Scheduled(cron = "0/10 * * * * ?")
    public void task() {
        System.out.println("每10秒发送一次");
    }
}
